use surrealdb::engine::local::Db;
use surrealdb::Surreal;

#[derive(Clone)]
pub struct AppState {
    pub db: Surreal<Db>,
}

impl AppState {
    pub fn new_with_db(db: Surreal<Db>) -> Self {
        AppState {
            db
        }
    }
}